package vn.muzik.dto;

import com.opensymphony.xwork2.validator.annotations.IntRangeFieldValidator;
import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;
import com.opensymphony.xwork2.validator.annotations.Validations;

public class UserCondDto extends BaseDto{
    private Integer     condUserId;
    private String      condUserName;
    private String      condPref;
    private String      condTelNumber;

    public Integer getCondUserId() {
        return condUserId;
    }

    @Validations(
        intRangeFields={
            @IntRangeFieldValidator(
                min="100"
                ,max="999"
                ,key="error.range.userid")},
        requiredStrings={
            @RequiredStringValidator(
                fieldName="condUserId"
                ,key="error.required.userid")})
    public void setCondUserId(Integer condUserId) {
        this.condUserId = condUserId;
    }

    public String getCondUserName() {
        return condUserName;
    }

    public void setCondUserName(String condUserName) {
        this.condUserName = condUserName;
    }

    public String getCondPref() {
        return condPref;
    }

    public void setCondPref(String condPref) {
        this.condPref = condPref;
    }

    public String getCondTelNumber() {
        return condTelNumber;
    }

    public void setCondTelNumber(String condTelNumber) {
        this.condTelNumber = condTelNumber;
    }
}
